<?php /* Smarty version 2.6.18, created on 2011-12-19 13:37:11
         compiled from content/post.tpl */ ?>
<!doctype html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>Default Examples</title>
		<style>
			form {
				margin: 0;
			}
			textarea {
				display: block;
			}
		</style>
		<script charset="utf-8" src="<?php echo $this->_tpl_vars['public']; ?>
/kindeditor/kindeditor-min.js"></script>
		<script charset="utf-8" src="<?php echo $this->_tpl_vars['public']; ?>
/kindeditor/lang/zh_CN.js"></script>
		<script>
			var editor;
			KindEditor.ready(function(K) {
				editor = K.create('textarea[name="content"]', {
					allowFileManager : true
				});
			});
		</script>
	</head>
	<body>
		<form>
			<textarea name="content" style="width:800px;height:400px;visibility:hidden;">KindEditor</textarea>
		</form>
	</body>
</html>
tion">
<![endif]-->
<link rel="stylesheet" href="<?php echo $this->_tpl_vars['res']; ?>
/css/style.css" type="text/css" media="screen, projection">
<script type="text/javascript" src="<?php echo $this->_tpl_vars['res']; ?>
/js/jquery/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['res']; ?>
/js/jquery.tools.min.js"></script>
<script type="text/javascript" charset="utf-8" src="<?php echo $this->_tpl_vars['public']; ?>
/kindeditor/kindeditor-min.js"></script>
<script type="text/javascript" charset="utf-8" src="<?php echo $this->_tpl_vars['public']; ?>
/kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript">
	var editor;
	KindEditor.ready(function(K) {
		editor = K.create('textarea[name="content"]', {
			allowFileManager : true
		});
	});
</script>

</head>

<body id="iContentPost" class="i">
	<div id="header"><div class="container">
    	
    </div></div>
    <div id="wrap"><div class="container">
    	<div id="postBlock">
        	<form name="contentPost" action="<?php echo $this->_tpl_vars['url']; ?>
/post/" method="post" enctype="multipart/form-data">
      			<div id="meta">
                	<div>
                    	<label>标题</label>
            			<input name="title" type="text" id="title" value="请输入内容主题" maxlength="100" class="intxt" />
                    </div>
                    <div>
                    	<label>标签TAG：</label>
            			<input name="tags" type="text" id="tags" maxlength="100" class="intxt"/>
                    </div>
                    <div>
                    	<label>作者：</label>
            			<input type="text" name="writer" id="writer" value="" maxlength="100" class="intxt"/>
                    </div>
                    <div>
                    	<label>隶属栏目：</label>
                        <select name='typeid' size='1'>
                        	<option value='0' selected>请选择栏目...</option>
                            
                        </select>
            			<span class="required">*</span>(不能选择带颜色的分类)
                    </div>
                    <div>
                    	<label>我的分类：</label>
                        <select name='mtypesid' size='1'>
                        	<option value='0' selected>请选择分类...</option>
                            
                        </select>
                        <a href="<?php echo $this->_tpl_vars['url']; ?>
/content/usertype/">添加分类</a>
                    </div>
                    <div>
                    	<label>信息摘要：</label>
            			<textarea name="description" id="description"></textarea>(内容的简要说明)
                    </div>
        			<div>
                    	<label>缩略图：</label>
            			<input name="litpic" type="file" id="litpic" maxlength="100" class="intxt"/>
                    </div>
                </div>
                <div id="details">
                	<textarea name="content" style="width:800px;height:400px;visibility:hidden;">KindEditor</textarea>
                </div>
      
    </div>
        <!-- 表单操作区域 -->
        <h3 class="meTitle">详细内容</h3>
        <div class="contentShow postForm">
          <p>
          	<?php echo '<?php'; ?>
 GetEditor("body","",350,"Member"); <?php echo '?>'; ?>

          </p>
      <?php echo '<?php'; ?>

      if($safe_faq_send == '1'){
      	$faqkey = array_rand($safefaqs);
      <?php echo '?>'; ?>

      	 <p class="cellBg">
            <label>验证问题：</label>
            <?php echo '<?php'; ?>
 echo $safefaqs[$faqkey]['question'];<?php echo '?>'; ?>
 (答案:<?php echo '<?php'; ?>
 echo $safefaqs[$faqkey]['answer'];<?php echo '?>'; ?>
)<input name="safeanswer" type="text" id="safeanswer" size="25" style='width:200px;' class="intxt"/> 
                <input type="hidden" name="faqkey" value="<?php echo '<?php'; ?>
 echo $faqkey;<?php echo '?>'; ?>
" />
         </p>
      <?php echo '<?php'; ?>

   		 }
      	//游客强制加验证码，会员则判断后台开关
        if(preg_match("/3/",$safe_gdopen)){
      <?php echo '?>'; ?>

          <p class="cellBg">
            <label>验证码：</label>
            <input name="vdcode" type="text" id="vdcode" maxlength="100" class="intxt" style='width:50px;text-transform:uppercase;' />
            <img src="../include/vdimgck.php" alt="看不清？点击更换" align="absmiddle" style="cursor:pointer" onclick="this.src=this.src+'?'" /></p>
      <?php echo '<?php'; ?>
 }<?php echo '?>'; ?>

      <p>
             <button class="button2" type="submit">提交</button>
             <button class="button2 ml10" type="reset" onclick="location.reload();">重置</button>
      </p>
        </div>
      </div>
      </form>
        </div>
    </div></div>
    <div id="footer"><div class="container">
    	
    </div></div>

</body>
</html>